package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysUser;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Sysuser: sys_user
 */
@SuppressWarnings({"PMD"})
public class _SysUser implements Serializable{
    
    /* 用户id: USER_ID VARCHAR */
    public static final String PROP_NAME_userId = "userId";
    public static final int PROP_ID_userId = 1;
    
    /* 用户名: USER_NAME VARCHAR */
    public static final String PROP_NAME_userName = "userName";
    public static final int PROP_ID_userName = 2;
    
    /* 用户密码: PASSWORD VARCHAR */
    public static final String PROP_NAME_password = "password";
    public static final int PROP_ID_password = 3;
    
    /* 状态 0，在岗 1，离职: STATUS INTEGER */
    public static final String PROP_NAME_status = "status";
    public static final int PROP_ID_status = 4;
    
    /* 所属机构编号: ORG_ID VARCHAR */
    public static final String PROP_NAME_orgId = "orgId";
    public static final int PROP_ID_orgId = 5;
    
    /* 租户id: TENANT_ID VARCHAR */
    public static final String PROP_NAME_tenantId = "tenantId";
    public static final int PROP_ID_tenantId = 6;
    
    /* 用户昵称: NICKNAME VARCHAR */
    public static final String PROP_NAME_nickname = "nickname";
    public static final int PROP_ID_nickname = 7;
    
    /* 用户手机号: PHONE VARCHAR */
    public static final String PROP_NAME_phone = "phone";
    public static final int PROP_ID_phone = 8;
    
    /* 头像: AVATAR VARCHAR */
    public static final String PROP_NAME_avatar = "avatar";
    public static final int PROP_ID_avatar = 9;
    
    /* 电子邮箱: EMAIL VARCHAR */
    public static final String PROP_NAME_email = "email";
    public static final int PROP_ID_email = 10;
    
    /* 用户类型 0、普通用户 1、超级管理员 2、创世委员: TYPE INTEGER */
    public static final String PROP_NAME_type = "type";
    public static final int PROP_ID_type = 11;
    
    /* 创建者: CREATE_BY VARCHAR */
    public static final String PROP_NAME_createBy = "createBy";
    public static final int PROP_ID_createBy = 12;
    
    /* 创建时间: CREATE_TIME DATETIME */
    public static final String PROP_NAME_createTime = "createTime";
    public static final int PROP_ID_createTime = 13;
    
    /* 修改人: UPDATE_BY VARCHAR */
    public static final String PROP_NAME_updateBy = "updateBy";
    public static final int PROP_ID_updateBy = 14;
    
    /* 修改时间: UPDATE_TIME DATETIME */
    public static final String PROP_NAME_updateTime = "updateTime";
    public static final int PROP_ID_updateTime = 15;
    
    /* 逻辑删除 0、未删除 1、已删除: DEL_FLAG INTEGER */
    public static final String PROP_NAME_delFlag = "delFlag";
    public static final int PROP_ID_delFlag = 16;
    

    private static int _PROP_ID_BOUND = 17;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_userId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_userId};

    private static final String[] PROP_ID_TO_NAME = new String[17];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_userId] = PROP_NAME_userId;
          PROP_NAME_TO_ID.put(PROP_NAME_userId, PROP_ID_userId);
      
          PROP_ID_TO_NAME[PROP_ID_userName] = PROP_NAME_userName;
          PROP_NAME_TO_ID.put(PROP_NAME_userName, PROP_ID_userName);
      
          PROP_ID_TO_NAME[PROP_ID_password] = PROP_NAME_password;
          PROP_NAME_TO_ID.put(PROP_NAME_password, PROP_ID_password);
      
          PROP_ID_TO_NAME[PROP_ID_status] = PROP_NAME_status;
          PROP_NAME_TO_ID.put(PROP_NAME_status, PROP_ID_status);
      
          PROP_ID_TO_NAME[PROP_ID_orgId] = PROP_NAME_orgId;
          PROP_NAME_TO_ID.put(PROP_NAME_orgId, PROP_ID_orgId);
      
          PROP_ID_TO_NAME[PROP_ID_tenantId] = PROP_NAME_tenantId;
          PROP_NAME_TO_ID.put(PROP_NAME_tenantId, PROP_ID_tenantId);
      
          PROP_ID_TO_NAME[PROP_ID_nickname] = PROP_NAME_nickname;
          PROP_NAME_TO_ID.put(PROP_NAME_nickname, PROP_ID_nickname);
      
          PROP_ID_TO_NAME[PROP_ID_phone] = PROP_NAME_phone;
          PROP_NAME_TO_ID.put(PROP_NAME_phone, PROP_ID_phone);
      
          PROP_ID_TO_NAME[PROP_ID_avatar] = PROP_NAME_avatar;
          PROP_NAME_TO_ID.put(PROP_NAME_avatar, PROP_ID_avatar);
      
          PROP_ID_TO_NAME[PROP_ID_email] = PROP_NAME_email;
          PROP_NAME_TO_ID.put(PROP_NAME_email, PROP_ID_email);
      
          PROP_ID_TO_NAME[PROP_ID_type] = PROP_NAME_type;
          PROP_NAME_TO_ID.put(PROP_NAME_type, PROP_ID_type);
      
          PROP_ID_TO_NAME[PROP_ID_createBy] = PROP_NAME_createBy;
          PROP_NAME_TO_ID.put(PROP_NAME_createBy, PROP_ID_createBy);
      
          PROP_ID_TO_NAME[PROP_ID_createTime] = PROP_NAME_createTime;
          PROP_NAME_TO_ID.put(PROP_NAME_createTime, PROP_ID_createTime);
      
          PROP_ID_TO_NAME[PROP_ID_updateBy] = PROP_NAME_updateBy;
          PROP_NAME_TO_ID.put(PROP_NAME_updateBy, PROP_ID_updateBy);
      
          PROP_ID_TO_NAME[PROP_ID_updateTime] = PROP_NAME_updateTime;
          PROP_NAME_TO_ID.put(PROP_NAME_updateTime, PROP_ID_updateTime);
      
          PROP_ID_TO_NAME[PROP_ID_delFlag] = PROP_NAME_delFlag;
          PROP_NAME_TO_ID.put(PROP_NAME_delFlag, PROP_ID_delFlag);
      
    }

    
    /* 用户id: USER_ID */
    private java.lang.String _userId;
    
    /* 用户名: USER_NAME */
    private java.lang.String _userName;
    
    /* 用户密码: PASSWORD */
    private java.lang.String _password;
    
    /* 状态 0，在岗 1，离职: STATUS */
    private java.lang.Integer _status;
    
    /* 所属机构编号: ORG_ID */
    private java.lang.String _orgId;
    
    /* 租户id: TENANT_ID */
    private java.lang.String _tenantId;
    
    /* 用户昵称: NICKNAME */
    private java.lang.String _nickname;
    
    /* 用户手机号: PHONE */
    private java.lang.String _phone;
    
    /* 头像: AVATAR */
    private java.lang.String _avatar;
    
    /* 电子邮箱: EMAIL */
    private java.lang.String _email;
    
    /* 用户类型 0、普通用户 1、超级管理员 2、创世委员: TYPE */
    private java.lang.Integer _type;
    
    /* 创建者: CREATE_BY */
    private java.lang.String _createBy;
    
    /* 创建时间: CREATE_TIME */
    private java.time.LocalDateTime _createTime;
    
    /* 修改人: UPDATE_BY */
    private java.lang.String _updateBy;
    
    /* 修改时间: UPDATE_TIME */
    private java.time.LocalDateTime _updateTime;
    
    /* 逻辑删除 0、未删除 1、已删除: DEL_FLAG */
    private java.lang.Integer _delFlag;
    

    public _SysUser(){
    }

    protected SysUser newInstance(){
       return new SysUser();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysUser";
    }

    
    /**
     * 用户id: USER_ID
     */
    public java.lang.String getUserId(){
         //onPropGet(PROP_ID_userId);
         return _userId;
    }

    /**
     * 用户id: USER_ID
     */
    public void setUserId(java.lang.String value){
        this._userId = value;
    }
    
    /**
     * 用户名: USER_NAME
     */
    public java.lang.String getUserName(){
         //onPropGet(PROP_ID_userName);
         return _userName;
    }

    /**
     * 用户名: USER_NAME
     */
    public void setUserName(java.lang.String value){
        this._userName = value;
    }
    
    /**
     * 用户密码: PASSWORD
     */
    public java.lang.String getPassword(){
         //onPropGet(PROP_ID_password);
         return _password;
    }

    /**
     * 用户密码: PASSWORD
     */
    public void setPassword(java.lang.String value){
        this._password = value;
    }
    
    /**
     * 状态 0，在岗 1，离职: STATUS
     */
    public java.lang.Integer getStatus(){
         //onPropGet(PROP_ID_status);
         return _status;
    }

    /**
     * 状态 0，在岗 1，离职: STATUS
     */
    public void setStatus(java.lang.Integer value){
        this._status = value;
    }
    
    /**
     * 所属机构编号: ORG_ID
     */
    public java.lang.String getOrgId(){
         //onPropGet(PROP_ID_orgId);
         return _orgId;
    }

    /**
     * 所属机构编号: ORG_ID
     */
    public void setOrgId(java.lang.String value){
        this._orgId = value;
    }
    
    /**
     * 租户id: TENANT_ID
     */
    public java.lang.String getTenantId(){
         //onPropGet(PROP_ID_tenantId);
         return _tenantId;
    }

    /**
     * 租户id: TENANT_ID
     */
    public void setTenantId(java.lang.String value){
        this._tenantId = value;
    }
    
    /**
     * 用户昵称: NICKNAME
     */
    public java.lang.String getNickname(){
         //onPropGet(PROP_ID_nickname);
         return _nickname;
    }

    /**
     * 用户昵称: NICKNAME
     */
    public void setNickname(java.lang.String value){
        this._nickname = value;
    }
    
    /**
     * 用户手机号: PHONE
     */
    public java.lang.String getPhone(){
         //onPropGet(PROP_ID_phone);
         return _phone;
    }

    /**
     * 用户手机号: PHONE
     */
    public void setPhone(java.lang.String value){
        this._phone = value;
    }
    
    /**
     * 头像: AVATAR
     */
    public java.lang.String getAvatar(){
         //onPropGet(PROP_ID_avatar);
         return _avatar;
    }

    /**
     * 头像: AVATAR
     */
    public void setAvatar(java.lang.String value){
        this._avatar = value;
    }
    
    /**
     * 电子邮箱: EMAIL
     */
    public java.lang.String getEmail(){
         //onPropGet(PROP_ID_email);
         return _email;
    }

    /**
     * 电子邮箱: EMAIL
     */
    public void setEmail(java.lang.String value){
        this._email = value;
    }
    
    /**
     * 用户类型 0、普通用户 1、超级管理员 2、创世委员: TYPE
     */
    public java.lang.Integer getType(){
         //onPropGet(PROP_ID_type);
         return _type;
    }

    /**
     * 用户类型 0、普通用户 1、超级管理员 2、创世委员: TYPE
     */
    public void setType(java.lang.Integer value){
        this._type = value;
    }
    
    /**
     * 创建者: CREATE_BY
     */
    public java.lang.String getCreateBy(){
         //onPropGet(PROP_ID_createBy);
         return _createBy;
    }

    /**
     * 创建者: CREATE_BY
     */
    public void setCreateBy(java.lang.String value){
        this._createBy = value;
    }
    
    /**
     * 创建时间: CREATE_TIME
     */
    public java.time.LocalDateTime getCreateTime(){
         //onPropGet(PROP_ID_createTime);
         return _createTime;
    }

    /**
     * 创建时间: CREATE_TIME
     */
    public void setCreateTime(java.time.LocalDateTime value){
        this._createTime = value;
    }
    
    /**
     * 修改人: UPDATE_BY
     */
    public java.lang.String getUpdateBy(){
         //onPropGet(PROP_ID_updateBy);
         return _updateBy;
    }

    /**
     * 修改人: UPDATE_BY
     */
    public void setUpdateBy(java.lang.String value){
        this._updateBy = value;
    }
    
    /**
     * 修改时间: UPDATE_TIME
     */
    public java.time.LocalDateTime getUpdateTime(){
         //onPropGet(PROP_ID_updateTime);
         return _updateTime;
    }

    /**
     * 修改时间: UPDATE_TIME
     */
    public void setUpdateTime(java.time.LocalDateTime value){
        this._updateTime = value;
    }
    
    /**
     * 逻辑删除 0、未删除 1、已删除: DEL_FLAG
     */
    public java.lang.Integer getDelFlag(){
         //onPropGet(PROP_ID_delFlag);
         return _delFlag;
    }

    /**
     * 逻辑删除 0、未删除 1、已删除: DEL_FLAG
     */
    public void setDelFlag(java.lang.Integer value){
        this._delFlag = value;
    }
    
}
// resume CPD analysis - CPD-ON
